package com.hlk.emos.wx.exception;

import lombok.Data;

/**
 * @author hlk
 * @version 1.0
 * @date 2021-04-26 16:22
 */
@Data
public class EmosException extends RuntimeException {
    private int code = 500;
    private String msg;

    public EmosException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public EmosException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public EmosException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public EmosException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }
}
